package ClassifierTraining;
import com.mongodb.DBObject;


public class TweetProbability implements Comparable<TweetProbability>{
	private DBObject tweet;
	private double positiveProbability;
	
	public TweetProbability(DBObject tweet, double positiveProb){
		this.tweet = tweet;
		this.positiveProbability = positiveProb;
	}
	
	public DBObject getTweet() {
		return tweet;
	}
	
	public double getPositiveProbability() {
		return positiveProbability;
	}

	public int compareTo(TweetProbability tProb) {
		if (tProb.getPositiveProbability() < positiveProbability){
			return -1;
		}
		
		if (tProb.getPositiveProbability() > positiveProbability){
			return 1;
		}
		
		return -1;
	}
}
